﻿using Android;
using Android.App;
using Android.Content.PM;
using Android.OS;
using AndroidX.Core.App;

namespace CarouselView
{
    [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
    public class MainActivity : MauiAppCompatActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Platform.Init(this, savedInstanceState);
            ActivityCompat.RequestPermissions(this, LOCAL_PERMISSIONS, 1);
        }

        private static string[] LOCAL_PERMISSIONS = new string[]{
            Manifest.Permission.WriteExternalStorage,
            Manifest.Permission.ReadExternalStorage
        };
    }
}